
QT += core gui
QT += qml quick
QT += sql
QT += network
QT += multimedia
QT += sensors
QT += texttospeech  #文字转语音
#QT += webkitwidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

QMAKE_CXXFLAGS += -std=c++0x
CONFIG += c++11

CONFIG += mobility
MOBILITY += sensors



CONFIG(debug, debug|release) {  #debug版本
#LIBS += -L../lib1 -lhellod
#LIBS += -L$$PWD/ -lxxx
#LIBS += -Lxxx -lyyy        #xxx是路径,yyy是lib/so名

#RESOURCES += \
#    Res.qrc \
#    QML.qrc
}
else {          #release版本
#LIBS += -L../lib2 -lhello

#RESOURCES += \
#    Res.qrc \
#    QML.qrc

#DEFINES+=QT_NO_DEBUG_OUTPUT    #屏蔽release版本中所有QDebug()提示信息

#-W[no-]<警告选项>。例如代码：
QMAKE_CXXFLAGS += -Wno-unused-parameter #没有用到的参数变量
QMAKE_CXXFLAGS += -Wno-unused-variable  #没有用到的变量
QMAKE_CXXFLAGS += -Wunused-but-set-variable #没有用到的变量
QMAKE_CXXFLAGS += -Wno-sign-compare #忽略有符号比较?
#QMAKE_CXXFLAGS += -fpermissive

}

android {
    QT += androidextras
}
win32 {
    #QT += androidextras
}
else {
}



TARGET = EnglishKill
TEMPLATE = app

RC_ICONS = icon.ico



SOURCES += _SRC/main.cpp \
    _SRC/GameManager.cpp \
    _SRC/GamePlatform.cpp \
    _SRC/Game.cpp \
    _SRC/UserInfo.cpp \
    _SRC/WordLib.cpp \
    \
    _SRC/Game/GameDefine.cpp \
    _SRC/Game/GameCore.cpp \
    _SRC/Game/Pai.cpp \
    _SRC/Game/Player.cpp \
    _SRC/Game/ChuPai.cpp \
    _SRC/Game/JieDuanChuLi.cpp \
    _SRC/Game/PaiChuLi.cpp \
    _SRC/Game/JiNengChuLi.cpp \
    _SRC/Game/ComputerAI.cpp \
    \
    _SRC/_Global/GlobalClass.cpp \
    _SRC/_Global/Socket/ClientSocket.cpp \
    _SRC/_Global/Sqlite/Sqlite.cpp \
    _SRC/_Global/Platform/Platform.cpp \
    _SRC/_Global/HTTP/HTTPDownload.cpp \
    _SRC/_Global/Speech/Speech.cpp \
    _SRC/_Global/VersionCheck/VersionCheck.cpp

HEADERS += \
    _SRC/GameManager.h \
    _SRC/GamePlatform.h \
    _SRC/UserInfo.h \
    _SRC/Game.h \
    _SRC/WordLib.h \
    \
    _SRC/Game/SocketDefine.h \
    _SRC/Game/GameDefine.h \
    _SRC/Game/GameCore.h \
    _SRC/Game/Pai.h \
    _SRC/Game/Player.h \
    \
    _SRC/_Global/GlobalClass.h \
    _SRC/_Global/Socket/ClientSocket.h \
    _SRC/_Global/Sqlite/Sqlite.h \
    _SRC/_Global/Platform/Platform.h \
    _SRC/_Global/HTTP/HTTPDownload.h \
    _SRC/_Global/Speech/Speech.h \
    _SRC/_Global/VersionCheck/VersionCheck.h

OTHER_FILES += \
    android/AndroidManifest.xml \
    android/gradle.properties \
    android/local.properties \
    android/res/values/libs.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew \
    android/gradlew.bat \
    \
    _SRC/QMLFiles/qmldir \
    _SRC/QML.qrc \
    _SRC/Res.qrc \
    _SRC/Updater.qrc \
    _SRC/UpdaterConfig.json \
    _SRC/_Global/Socket/1.Pleafles.txt \
    \
    _ExtraFiles/Config.cfg \
    _ExtraFiles/1.Pleafles.txt \
    _ExtraFiles/1.数据库设计.txt

DISTFILES += \
    _SRC/QMLFiles/Login/login.qml \
    _SRC/QMLFiles/Login/LoginForm.qml \
    _SRC/QMLFiles/Player/Player.qml \
    _SRC/QMLFiles/Poke/Poke.qml \
    _SRC/QMLFiles/GameOver.qml \
    _SRC/QMLFiles/GameChoiceRenWu.qml \
    _SRC/QMLFiles/QuestionBox/QuestionBox.qml \
    _SRC/QMLFiles/Register/Register.qml \
    _SRC/QMLFiles/GameStudyType.qml \
    _SRC/QMLFiles/GameRanking.qml \
    _SRC/QMLFiles/GameSchool/GameSchool.qml \
    _SRC/QMLFiles/GameUserInfo.qml \
    _SRC/QMLFiles/GameEscMenu.qml \
    _SRC/QMLFiles/ServerChoice.qml \
    _SRC/QMLFiles/RegGameUserInfo.qml \
    _SRC/QMLFiles/GameGrade.qml \
    _SRC/QMLFiles/GameClass.qml \
    _SRC/QMLFiles/GameLevelInfo.qml \
    _SRC/QMLFiles/Group/Group.qml \
    _SRC/QMLFiles/Group/InGroup.qml \
    _SRC/QMLFiles/GameConfigMenu.qml \
    _SRC/QMLFiles/GameMsgBox.qml \
    \
    _SRC/QMLFiles/game.qml \
    _SRC/QMLFiles/GameUI.qml \
    _SRC/QMLFiles/DebugWindow.qml \
    _SRC/QMLFiles/GameJS.js \
    \
    _SRC/QMLFiles/Global.qml \
    _SRC/QMLFiles/_Global/Global.js \
    _SRC/QMLFiles/_Global/GameItem.qml \
    _SRC/QMLFiles/_Global/MsgBox.qml \
    _SRC/QMLFiles/_Global/Button/ImageButton.qml \
    _SRC/QMLFiles/_Global/Button/ImageButton2.qml \
    _SRC/QMLFiles/_Global/Button/ColorButton.qml \
    _SRC/QMLFiles/_Global/Line/Line.qml \
    _SRC/QMLFiles/_Global/Popup/Mask.qml \
    _SRC/QMLFiles/_Global/Popup/Popup.qml \
    _SRC/QMLFiles/_Global/Progress/Progress.qml \
    _SRC/QMLFiles/_Global/WordMove.qml \
    \
    android/AndroidManifest.xml \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradlew \
    android/res/values/libs.xml \
    android/res/values/styles.xml \
    android/build.gradle \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew.bat \
    \
    android/src/com/leamus/Java/JavaFunctions.java \
    android/src/com/leamus/Java/Module.java


# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
